package com.gams.springboot.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author tql
 * @current springboot
 * @create 2021-09-30-8:46
 */
@Data
@ContentRowHeight(10)
public class Quota {
    @ExcelIgnore
    @ExcelProperty("ID")
    private String id;

    @ColumnWidth(20)
    @ExcelProperty(value = "学生姓名",index = 0)
    private String name;

    @ColumnWidth(20)
    @ExcelProperty(value = "学生性别",index = 1)
    private String gender;

    @ColumnWidth(20)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "出生日期",index = 2)
    private Date date;

}
